package com.netease.c.a;

import com.netease.c.l;
import java.io.PrintStream;

public class d
{
  private static final String b = "utf-8";
  e a;

  private byte[] c(String paramString)
  {
    try
    {
      byte[] arrayOfByte2 = paramString.getBytes("utf-8");
      arrayOfByte1 = arrayOfByte2;
      return arrayOfByte1;
    }
    catch (Exception localException)
    {
      while (true)
        byte[] arrayOfByte1 = null;
    }
  }

  public String a(String paramString)
  {
    byte[] arrayOfByte = l.a(b(paramString));
    try
    {
      str = new String(arrayOfByte, "utf-8");
      return str;
    }
    catch (Exception localException)
    {
      while (true)
      {
        System.err.println(localException + "");
        String str = new String(arrayOfByte);
      }
    }
  }

  public void a(byte[] paramArrayOfByte)
  {
    this.a = new e(new c());
    b localb = new b(paramArrayOfByte);
    this.a.a(localb);
  }

  public byte[] b(String paramString)
  {
    this.a.d();
    byte[] arrayOfByte1 = new byte[this.a.c()];
    byte[] arrayOfByte2 = c(paramString);
    this.a.a(arrayOfByte2, 0, arrayOfByte2.length);
    this.a.a(arrayOfByte1, 0);
    return arrayOfByte1;
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.c.a.d
 * JD-Core Version:    0.6.0
 */